package com.qzsoft.system.modules.permission.roleclass.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;

/**
 * 权限角色分组表(权限角色)(SysRoleGroup)表实体类
 *
 * @author zt
 * @since 2020-09-22 14:24:44
 */
@ApiModel(value = "权限角色分组表(权限角色)")
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@TableName("sys_role_class")
public class SysRoleClassEntity extends Model<SysRoleClassEntity> {
    private static final long serialVersionUID = -24459563540977111L;

    /**
     * id主键
     */
    @TableId
    @ApiModelProperty(value = "id主键")
    private String id;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称")
    private String name;

    /**
     * 父节点
     */
    @ApiModelProperty(value = "父节点")
    private String pid;

    /**
     * 是否系统内置分组
     */
    @ApiModelProperty(value = "是否系统内置分组")
    private Boolean hasSystem;

    /**
     * 1分组全是分组
     */
    @ApiModelProperty(value = "1分组全是分组")
    private Boolean hasGroup;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 简拼
     */
    @ApiModelProperty(value = "简拼")
    private String spell;

    /**
     * 拼音
     */
    @ApiModelProperty(value = "拼音")
    private String pinyin;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer orderId;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private Long creator;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;
    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

}